import Vue from 'vue'
import App from './App.vue'
import api from './api/index'
import router from './router/index'
import store from './store/index'
import i18n from './i18n'
import 'element-ui/lib/theme-chalk/index.css'
import './assets/css/global.scss'
import './assets/css/layout.scss'
import 'babel-polyfill'
import ElementUI from 'element-ui'
import 'nprogress/nprogress.css'
import plugin from './utils/plugin'
import myPlugin from './components/common/index'
import permission from './permission/index'
import './assets/icons' // icon

Vue.use(ElementUI)

Vue.use(api)

Vue.use(plugin)

Vue.use(myPlugin)

Vue.use(permission)

Vue.config.productionTip = false

new Vue({
  i18n,
  router,
  store,
  render: h => h(App)
}).$mount('#app')
